﻿using JiveMessenger.Utilities;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236

namespace JiveMessenger.CustomControls
{

    public sealed partial class TopHatControl : UserControl
    {
        public Brush BrimFillBrush
        {
            get { return (Brush)GetValue(BrimFillBrushProperty); }
            set { SetValue(BrimFillBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for BrimFillBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BrimFillBrushProperty =
            DependencyProperty.Register("BrimFillBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata(new SolidColorBrush(StaticMethods.HexStringToColor("#FF1C1C1C"))));



        public Brush TopFillBrush
        {
            get { return (Brush)GetValue(TopFillBrushProperty); }
            set { SetValue(TopFillBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for TopFillBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TopFillBrushProperty =
            DependencyProperty.Register("TopFillBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata(new SolidColorBrush(StaticMethods.HexStringToColor("#FF222222"))));




        public Brush OutlineBrush
        {
            get { return (Brush)GetValue(OutlineBrushProperty); }
            set { SetValue(OutlineBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for OutlineBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty OutlineBrushProperty =
            DependencyProperty.Register("OutlineBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata(new SolidColorBrush(StaticMethods.HexStringToColor("#FF000000"))));



        public TopHatControl()
        {
            this.InitializeComponent();
            this.LayoutRoot.DataContext = this;
        }
    }
}
